package entity;

import static org.junit.Assert.*;
import org.junit.Test;

public class BureauTest {
	
	public String ho = "11:24";
	public String hf = "10:15";
	Bureau bur = new Bureau(1, "paris10", "vote1", ho, hf);
	
	@Test
	public void testBureau() {
		assertNotSame(bur,null);
	}

	@Test
	public void testGetIdbureau() {
		assertEquals(1, bur.getIdbureau());
	}

	@Test
	public void testSetIdbureau() {
		bur.setIdbureau(2);
		assertEquals(2, bur.getIdbureau());
		bur.setIdbureau(1);
	}

	@Test
	public void testGetAdresse() {
		assertEquals("paris10", bur.getAdresse());
	}

	@Test
	public void testSetAdresse() {
		bur.setAdresse("paris11");
		assertEquals("paris11", bur.getAdresse());
		bur.setAdresse("paris10");
	}

	/*@Test
	public void testGetHeurefermeture() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public void testSetHeurefermeture() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public void testGetHeureouverture() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public void testSetHeureouverture() {
		fail("Not yet implemented"); // TODO
	}*/

	@Test
	public void testGetNom() {
		assertEquals("vote1", bur.getNom());
	}

	@Test
	public void testSetNom() {
		bur.setNom("vote2");
		assertEquals("vote2", bur.getNom());
		bur.setAdresse("vote1");
	}

	/*@Test
	public void testGetElections() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public void testSetElections() {
		fail("Not yet implemented"); // TODO
	}*/

}
